import request from '@/common/request'


export function getList(params) {
    return request({
        url: '/apikanke/coursewarePub/list',
        method: 'get',
        params,
    })
}

export function getFolderList(params) {
    return request({
        url: '/apikanke/coursewarePub/getFolderList',
        method: 'get',
        params,
    })
}

export function moveFiles(params) {
    return request({
        url: '/apikanke/coursewarePub/moveFiles',
        method: 'post',
        params,
    })
}

export function editFolder(params) {
    return request({
        url: '/apikanke/coursewarePub/editFolder',
        method: 'post',
        params,
    })
}

export function folderDetail(params) {
    return request({
        url: '/apikanke/coursewarePub/getFolderDetail',
        method: 'post',
        params,
    })
}

export function getFolderLevel(params) {
    return request({
        url: '/apikanke/coursewarePub/getFolderLevel',
        method: 'post',
        params,
    })
}

export function delFile(params) {
    return request({
        url: '/apikanke/coursewarePub/delFile',
        method: 'post',
        params,
    })
}

export function addFolderFile(params) {
    return request({
        url: '/apikanke/coursewarePub/addFolderFile',
        method: 'post',
        params,
    })
}

//布置任务 判断文件是否匹配
export function getBooktypeFiles(params) {
    return request({
        url: '/apikanke/coursewarePub/getBooktypeFiles',
        method: 'post',
        params,
    })
}

//调用api里面的课件详情
export function getCourseDetail(params) {
    return request({
        url: '/apikanke/courseware/getContent',
        method: 'get',
        params
    })
}

export function sortFolderCourseware(params) {
    return request({
        url: '/apikanke/coursewarePub/sortFolderCourseware',
        method: 'post',
        params,
    })
}